package top.datacluster.basic.structure.tree;

public abstract class AbstractBinaryTree<T> implements BinaryTree {

    protected Node<T> root;

    public AbstractBinaryTree(Node<T> root) {
        this.root = root;
    }

    public AbstractBinaryTree() {

    }

    public abstract boolean insert(Node node);

    protected boolean isEmpty(){
        return root == null;
    }
}
